package com.zx.service.impl;

import com.zx.mapper.SmbmsProviderMapper;
import com.zx.pojo.SmbmsProvider;
import com.zx.service.ProviderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProviderServiceImpl implements ProviderService {
    @Autowired
    private SmbmsProviderMapper providerMapper;

    @Override
    public List<SmbmsProvider> findAllByProvider() {
        return providerMapper.findAllByProvider();
    }

    @Override
    public SmbmsProvider findProviderById(Long id) {
        return providerMapper.findProviderById(id);
    }

    @Override
    public boolean addProvider(SmbmsProvider smbmsProvider) {
        return providerMapper.addProvider(smbmsProvider);
    }

    @Override
    public boolean delProvider(Long id) {
        return providerMapper.delProvider(id);
    }

    @Override
    public boolean updateProvider(SmbmsProvider smbmsProvider) {
        return providerMapper.updateProvider(smbmsProvider);
    }
}
